﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cypher.Core.Configuration
{
	public sealed class ServiceElement : System.Configuration.ConfigurationElement
	{
		#region Properties

		[System.Configuration.ConfigurationProperty("name", DefaultValue = "", IsRequired = true)]
		public string Name
		{
			get { return this["name"] as string; }
			set { this["name"] = value; }
		}

		[System.Configuration.ConfigurationProperty("type", DefaultValue = "", IsRequired = true)]
		public string Type
		{
			get { return this["type"] as string; }
			set { this["type"] = value; }
		}

		[System.Configuration.ConfigurationProperty("uri", DefaultValue = "", IsRequired = false)]
		public Uri Uri
		{
			get { return this["uri"] as Uri; }
			set { this["uri"] = value; }
		}

		#endregion
	}
}
